<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/common.html::common_css">
</head>
<body>
<div th:replace="common/admin_common.html::common_sidebar"></div>
<div class="page">
    <div th:replace="common/admin_common.html::common_navbar"></div>
    <!-- Breadcrumb-->
    <div class="breadcrumb-holder">
        <div class="container-fluid">
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a th:href="@{/admin/admin_index.html}">主页</a></li>
                <li class="breadcrumb-item"><a th:href="@{/admin/testpaper_manage.html}">试卷管理</a></li>
                <li class="breadcrumb-item active">添加试卷</li>
            </ul>
        </div>
    </div>
    <section>
        <div class="container-fluid">
            <!-- Page Header-->
            <header>
                <h1 class="h3 display">添加试卷</h1>
            </header>
            <div class="row">
                <div class="col-lg-6" style="flex:100%;max-width: 100%">
                    <form class="text-left form-validate" th:action="@{/admin/testpaper_add.html}" method="post">
                        <div class="form-group-material">
                            <input id="testpapername" type="text" style="background-color: #fff !important;"
                                   name="testpapername" required data-msg="请输入试卷名称" class="input-material">
                            <label for="testpapername" class="label-material">试卷名称</label>
                        </div>
                        <div class="form-group-material">
                            <label for="apartmentid" class="label-material" style="color: #aaaaaa;">部门</label>
                            <select id="apartmentid" name="apartmentid" class="form-control" required data-msg="请选择部门">
                                <option></option>
                                <option th:each="apartments:${apartments}" th:value="${apartments.apartmentid}" th:text="${apartments.apartmentname}"></option>
                            </select>
                        </div>
                        <div class="form-group terms-conditions text-center">
                            <label class="label-material" style="color: #aaaaaa;">试卷类型</label>
                            <input name="type" class="form-control-custom is-invalid" id="staticpaper"
                                   aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                                   value="1" data-msg="请选择试卷类型" checked="checked">
                            <label for="staticpaper">固定组卷</label>
                            <input name="type" class="form-control-custom is-invalid" id="radompaper"
                                   aria-invalid="true" aria-describedby="registerAgree-error" required="" type="radio"
                                   value="0" data-msg="请选择试卷类型">
                            <label for="radompaper">随机组卷</label>
                        </div>
                        <div class="form-group-material">
                            <input id="singlenum" type="number" style="background-color: #fff !important;"
                                   name="singlenum" required="" data-msg="请输入数字" class="input-material">
                            <label for="singlenum" class="label-material">单选题数目</label>
                        </div>
                        <div class="form-group-material">
                            <input id="multiplenum" type="text" style="background-color: #fff !important;"
                                   name="multiplenum" required data-msg="请输入数字" class="input-material">
                            <label for="multiplenum" class="label-material">多选题数目</label>
                        </div>
                        <div class="form-group-material">
                            <input id="judgenum" type="text" style="background-color: #fff !important;" name="judgenum"
                                   required data-msg="请输入数字" class="input-material">
                            <label for="judgenum" class="label-material">判断题数目</label>
                        </div>
                        <div class="form-group text-center">
                            <input id="random" style="border-radius: 4px;" type="submit" value="添加" class="btn btn-primary">
                            <a th:href="@{/admin/testpaper_manage.html}"
                               type="button" class="btn btn-warning m-b-10 m-1-5"
                               style="border-radius: 4px;margin-left: 50px">返回</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <div th:replace="common/common.html::common_footer"></div>
</div>
<div th:replace="common/common.html::common_js">
</div>
</body>
</html>